home *** CD-ROM | disk | FTP | other *** search
/ Hentai Interactivo 50 / HENTAI_50.iso / flashplayers / osx.app / Contents / Resources / Install Flash Player 8 OSX.rsrc / shsc_5001 < prev    next >
Text File  |  2008-08-13  |  955b  |  34 lines

  1. #!/bin/sh
  2.  
  3. # Known browser binary paths
  4. ieProc='Contents/MacOS/Internet Explorer'
  5. caminoProc='Contents/MacOS/Camino'
  6. mozillaProc='Contents/MacOS/mozilla-bin'
  7. firefoxProc='Contents/MacOS/firefox-bin'
  8. operaProc='Contents/MacOS/Opera'
  9. safariProc='Contents/MacOS/Safari'
  10.  
  11. rm -f ~/PSResult
  12. rm -f ~/BrowserProcessFound
  13.  
  14. ps ax -ww -o command > ~/PSResult
  15.  
  16. # Detect the browser binary paths in the processes
  17. if grep "${ieProc}" ~/PSResult ; then
  18.     echo "${ieProc}" > ~/BrowserProcessFound
  19. elif grep "${caminoProc}" ~/PSResult ; then
  20.     echo "${caminoProc}" > ~/BrowserProcessFound
  21. elif grep "${mozillaProc}" ~/PSResult ; then
  22.     echo "${mozillaProc}" > ~/BrowserProcessFound
  23. elif grep "${firefoxProc}" ~/PSResult ; then
  24.     echo "${firefoxProc}" > ~/BrowserProcessFound
  25. elif grep "${operaProc}" ~/PSResult ; then
  26.     echo "${operaProc}" > ~/BrowserProcessFound
  27. elif grep "${safariProc}" ~/PSResult ; then
  28.     echo "${safariProc}" > ~/BrowserProcessFound
  29. fi
  30.  
  31. rm -f ~/PSResult
  32.  
  33.  
  34.